package com.mida.dms.knw.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <h1>本体类型树状结构一级</h1>
 * <p>
 *
 * @author jian.li on 2021/3/23 10:23
 */
@ApiModel(description = "本体类型树状结构一级")
@Data
public class KnwNoumenonFirstLevelTree {

    @ApiModelProperty(value = "一级类型code")
    @JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    Long code;

    @ApiModelProperty(value = "一级类型名称")
    String value;

    @ApiModelProperty(value = "二级类型列表")
    List<KnwNoumenonSecondLevelTree> children;
}

